select tname, creator from catalog where (tabletype = 'TABLE' or tabletype = 'VIEW') and creator like '^creator^' and tname like '^table^' order by tname;
select cname,coltype,nulls,width,scale from columns where tname = '^0' and creator = '^creator^' order by colno;